home *** CD-ROM | disk | FTP | other *** search
/ Network CD 2 / Network CD - Volume 2.iso / programs / internet / tcp / amitcp / amitcp-src-22.lha / AmiTCP-2.2 / src / util / letnet / letnet.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-08-12  |  1.2 KB  |  54 lines

  1. /* $Id: letnet.h,v 1.4 1993/08/12 09:04:00 jraja Exp $
  2.  *
  3.  * letnet.h --- letnet structures and global variables
  4.  *
  5.  * Author: ppessi <Pekka.Pessi@hut.fi>
  6.  *
  7.  * Copyright © 1993 AmiTCP/IP Group, <amitcp-group@hut.fi>
  8.  *                  Helsinki University of Technology, Finland.
  9.  *                  All rights reserved.
  10.  *
  11.  * Created      : Sun May 16 19:54:15 1993 ppessi
  12.  * Last modified: Fri Jun  4 02:57:09 1993 ppessi
  13.  *
  14.  * $Log: letnet.h,v $
  15.  * Revision 1.4  1993/08/12  09:04:00  jraja
  16.  * Changed email address.
  17.  *
  18.  * Revision 1.3  1993/05/26  23:45:32  ppessi
  19.  * Experiment with pr_ExitCode; some resource allocation bugs fixed.
  20.  *
  21.  * Revision 1.2  1993/05/23  17:57:57  ppessi
  22.  * *** empty log message ***
  23.  *
  24.  * Revision 1.1  93/05/18  00:59:19  ppessi
  25.  * Initial revision
  26.  * 
  27.  */
  28.  
  29. struct SocketMessage {
  30.   struct Message sm_Msg;
  31.   LONG           sm_id;
  32.   LONG         sm_retval;    /* non zero errorcode */
  33. };
  34.  
  35. /* Send and receive buffer lenghts */
  36. #define RECBUFLEN 256
  37. #define SENDBUFLEN 256
  38.  
  39. LONG do_sender(void);
  40.  
  41. #if __GNUC__
  42. #define SAVEDS
  43. #define REG(X)
  44. #define ASM
  45. #elif __SASC
  46. #define SAVEDS __saveds
  47. #define REG(X) register __ ## X
  48. #define ASM    __asm
  49. #else
  50. #define SAVEDS
  51. #endif
  52.  
  53. SAVEDS ASM LONG exitcode(REG(d0) LONG status, REG(d1) LONG exitmessage);
  54.